package mapler.socialclock;

import android.app.Activity;
import android.app.NotificationManager;
import android.content.Context;
import android.os.Bundle;
import android.util.Log;

import mapler.socialclock.data.*;

public class NotificationAction extends Activity {

	private NotificationManager notificationManager;

	
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.d("socialalarmlog", "NotificationAction: onCreate");
		
		/* 初始化 */
		notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
		
		/* 新建闹钟 */
		AlarmCreator alarmCreator = new AlarmCreator(this);
		alarmCreator.createNormalAlarm();
		
		/* 清除消息栏 */
		notificationManager.cancel(ConstantData.AlarmType.ALARM_SNOOZE);
	}
}
